#ifndef _PRIMITIVECUBE_
#define _PRIMITIVECUBE_

#include "Primitive.h"
#include "GeomBox.h"

class PrimitiveCube: public Primitive{
protected:
	GeomBox *mGeomPtr;
public:
	PrimitiveCube(double Mass): Primitive( Mass ){
		mGeom = new GeomBox(mDim);
		mGeom->translate(mOffset);
		mGeom->setPhysObject(this);
		mGeomPtr = static_cast<GeomBox*>(mGeom);
	}
	PrimitiveCube(Vec3d _offset, Vec3d _dim, double Mass) : Primitive(_offset, _dim, Mass){
		mGeom = new GeomBox(mDim);
		mGeom->translate(mOffset);
		mGeom->setPhysObject(this);
		mGeomPtr = static_cast<GeomBox*>(mGeom);
	}

	//void draw(Vec4d _col=Vec4d(vl_1), bool _default=true);
	//bool isInside(Vec3d _pt);

	Mat4d* getMassTensor();
	//double getVolume();
};

#endif
